package com.yx.modules.api.dao;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yx.modules.api.entity.TbToken;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * Created by wuye on 2017/11/24.
 */
@Mapper
@Repository
public interface TbTokenDao extends BaseMapper<TbToken> {
	
	TbToken queryByUserId(Long userId);

	TbToken queryByToken(String token);

	Integer update(TbToken tbToken);

}